using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Indexes
{
    /// <summary>
    /// <para>Add Spatial Index</para>
    /// <para>Adds a spatial index to a shapefile, file geodatabase, mobile geodatabase, or enterprise geodatabase feature class.   Use this tool to either add a spatial index to a shapefile or feature class that does not already have one or to re-create an existing spatial index.</para>
    /// <para>将空间索引添加到 shapefile、文件地理数据库、移动地理数据库或企业级地理数据库要素类。  使用此工具可以将空间索引添加到尚无空间索引的 shapefile 或要素类，也可以重新创建现有空间索引。</para>
    /// </summary>    
    [DisplayName("Add Spatial Index")]
    public class AddSpatialIndex : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddSpatialIndex()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>An enterprise geodatabase feature class, file geodatabase feature class, mobile geodatabase feature class, or shapefile to which a spatial index is to be added or rebuilt.</para>
        /// <para>要添加或重新构建空间索引的企业级地理数据库要素类、文件地理数据库要素类、移动地理数据库要素类或 shapefile。</para>
        /// </param>
        public AddSpatialIndex(object _in_features)
        {
            this._in_features = _in_features;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Add Spatial Index";

        public override string CallName => "management.AddSpatialIndex";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _spatial_grid_1, _spatial_grid_2, _spatial_grid_3, _out_feature_class];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>An enterprise geodatabase feature class, file geodatabase feature class, mobile geodatabase feature class, or shapefile to which a spatial index is to be added or rebuilt.</para>
        /// <para>要添加或重新构建空间索引的企业级地理数据库要素类、文件地理数据库要素类、移动地理数据库要素类或 shapefile。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Spatial Grid 1</para>
        /// <para>This parameter has been deprecated in ArcGIS Pro. Any value you enter will be ignored.</para>
        /// <para>此参数在 ArcGIS Pro 中已弃用。您输入的任何值都将被忽略。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spatial Grid 1")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _spatial_grid_1 { get; set; } = 0;


        /// <summary>
        /// <para>Spatial Grid 2</para>
        /// <para>This parameter has been deprecated in ArcGIS Pro. Any value you enter will be ignored.</para>
        /// <para>此参数在 ArcGIS Pro 中已弃用。您输入的任何值都将被忽略。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spatial Grid 2")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _spatial_grid_2 { get; set; } = 0;


        /// <summary>
        /// <para>Spatial Grid 3</para>
        /// <para>This parameter has been deprecated in ArcGIS Pro. Any value you enter will be ignored.</para>
        /// <para>此参数在 ArcGIS Pro 中已弃用。您输入的任何值都将被忽略。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spatial Grid 3")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _spatial_grid_3 { get; set; } = 0;


        /// <summary>
        /// <para>Updated Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_feature_class { get; set; }


        public AddSpatialIndex SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}